package com.ds.infrastructure.audit.common.enums;

import lombok.Getter;

/**
 * 作用：
 *
 * @author WeiShaoying
 * @date 2020/8/6
 */
@Getter
public enum ResultCode {

    SUCCESS(200, "操作成功"),

    //非200都是失败

    PARAM_VALIDATE_FAILED(400, "参数校验失败"),

    AUTH_VALIDATE_FAILED(403, "权限验证失败"),

    SERVER_ERROR(500, "服务端错误"),

    OTHER_ERROR(509, "未知错误");

    private int code;

    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
